<template>
  <el-card class="content">
    <el-row>
      <el-col :span="6">
        <span>用户名：</span>
        <el-input
          placeholder="请输入用户名"
          value=""
          style="width: 200px"
        ></el-input>
      </el-col>
      <el-col :span="6">
        <span>开始时间：</span>
        <el-time-select
          placeholder="请输入开始时间"
          style="width: 200px"
        ></el-time-select>
      </el-col>
      <el-col :span="6">
        <span>结束时间：</span>
        <el-time-select
          placeholder="请输入结束时间"
          style="width: 200px"
        ></el-time-select>
      </el-col>
      <el-col :span="6">
        <el-button class="black-button" size="small">查询</el-button>
      </el-col>
    </el-row>
    <p class="bg-purple">参考系信息列表</p>
    <el-table :data="tableData" stripe size="small">
      <el-table-column
        prop="date"
        label="用户名称"
        align="center"
      ></el-table-column>
      <el-table-column
        prop="name"
        label="操作内容"
        align="center"
      ></el-table-column>
      <el-table-column
        prop="address"
        label="操作时间"
        align="center"
      ></el-table-column>
    </el-table>
    <el-row type="flex" justify="end">
      <el-pagination
        :current-page="query.page"
        :page-sizes="[10, 15]"
        :page-size="query.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total"
      >
      </el-pagination>
    </el-row>
  </el-card>
</template>

<script>
export default {
  name: "LogManagementChild",
  data() {
    return {
      query: {
        page: 1,
        pagesize: 10,
      },
      total: 10,
      value1: "",
      value2: "",
      //   表格数据
      tableData: [
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-24 14:39:59",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-24 13:50:55",
        },
        {
          date: "jxkb",
          name: "登入系统",
          address: "2020-09-24 10:51:27",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-24 08:59:41",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-24 08:52:59",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-24 08:44:08",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-23 23:27:49",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-23 22:15:04",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-23 18:53:52",
        },
        {
          date: "ceshi01",
          name: "登入系统",
          address: "2020-09-23 18:43:25",
        },
      ],
      // 当前页数
      currentPage: 1,
      // 当前页面条数
      currentSize: 10,
    };
  },
  methods: {},
};
</script>

<style scoped>
.content {
  height: 87vh;
}

.black-button {
  background-color: black;
  color: white;
}

.bg-purple {
  background: #d3dce6;
  height: 30px;
  font-size: 14px;
  line-height: 30px;
  padding-left: 10px;
}
.el-button {
  font-size: 14px;
  margin-bottom: 8px;
}
.el-table {
  display: block;
  height: 67.2vh;
  overflow-y: auto;
  margin-bottom: 15px;
}
.el-table::before {
  z-index: inherit;
}
</style>
